#ifndef BACKGROUND_LOADER_H
#define BACKGROUND_LOADER_H

//Windows/Linux OpenGL Libraries
#include <GL/glut.h>

//ImageMagick Headers
#include <Magick++.h>

namespace backgrounds {

	class BackgroundLoader 
	{
		float height;
		float width;
		float depth;

		int currentTexture;
		static GLuint textures[2];

	public:
		bool planeSelector;  //This is used to determine which plane to render.
		BackgroundLoader();
		BackgroundLoader(float _height, float _width, float _depth, bool _planeSelector);
		~BackgroundLoader();

		void renderTopPlane();
		void renderBackPlane();

		inline void setWidth ( float width );
		inline void setHeight( float height );
		inline void setDepth ( float depth );

		void setTexture(char *fileName);
		void setTexture(char *fileName, int location);
	};

	void BackgroundLoader::setWidth( float _width ){
		width = _width;
	}

	void BackgroundLoader::setHeight( float _height ){
		height = _height;
	}

	void BackgroundLoader::setDepth( float _depth ){
		depth = _depth;
	}
}

#endif